package com.job.client.posts.controller;


import com.job.client.common.result.ResponseResult;
import com.job.client.posts.service.PostsCardService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 创建职位卡片表 前端控制器
 * </p>
 *
 * @author fkl
 * @since 2023-12-16
 */
@RestController
@RequestMapping("/api/v1/client/posts/card")
@Api(tags = "职位卡片服务接口文档")
public class PostsCardController {
    @Autowired
    private PostsCardService postsCardService;
    @GetMapping("/info")
    @ApiOperation("分页查找职位卡片的数据,根据浏览量有限")
    public ResponseResult getCardInfo(Integer page,Integer size){
        return postsCardService.getCardInfo(page,size);
    }
}
